public class Producer extends Thread {

	private Container container;

	public Producer(Container container) {
		setContainer(container);

	}

	@Override
	public void run() {
		container.setValue(Math.random()*100);
	}

	public Container getContainer() {
		return container;
	}

	public void setContainer(Container container) {
		this.container = container;
	}

}
